package com.liqi.frame.comm.controller.manager;

import com.liqi.frame.comm.enums.ResultEnum;
import com.liqi.frame.comm.exception.GlobalException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

/**
 * @author liqi on 2020/3/16 0016. liqiwork@qq.com
 */
@Controller
@RequestMapping("/test1")
public class Test1Controller {

    @RequestMapping({"aa"})
    public ModelAndView userManager(HttpServletRequest request) {
//        throw new GlobalException(ResultEnum.FAILURE);
        return new ModelAndView("comm/manager/test");
    }
}
